package com.xjrsoft.module.customerTwo.EMP.electricity_cost_records_day.service;

import com.xjrsoft.module.customerTwo.EMP.electricity_cost_records_day.entity.TElectricityCostRecordsDay;
import com.xjrsoft.module.customerTwo.EMP.electricity_cost_records_day.dto.TElectricityCostRecordsDayListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xjrsoft.common.page.PageOutput;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 *  服务类
 *
 * @author dongxinhang
 * @since 2023-07-24
 */
public interface ITElectricityCostRecordsDayService extends IService<TElectricityCostRecordsDay> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<TElectricityCostRecordsDay> getPageList(TElectricityCostRecordsDayListDto pageListDto);

	/**
	 * 处理时间范围内 每日电量记录
	 * @param start 日期范围始 yyyy-MM-dd
	 * @param end 日期范围止 yyyy-MM-dd
	 * @param electricityPrice 电量单价（取自表t_price_setting）
	 * @return
	 */
	boolean dealElectricityCostRecordsDay(String start,String end, BigDecimal electricityPrice);
}
